﻿using System;
using System.Collections.Generic;
using System.Web;

using EHSubmit.Model;

namespace EHSubmit.Logic.Services
{
    /// <summary>
    /// 获取远程数据
    /// </summary>
    public interface IRemoteDataProxy
    {
        /// <summary>
        /// 获得学生选课信息
        /// </summary>
        /// <param name="sid">学生ID</param>
        /// <returns>选课信息</returns>
        IList<Course> GetCoursesOfStudent(string sid);

        /// <summary>
        /// 获得教师授课信息
        /// </summary>
        /// <param name="tid">教师ID</param>
        /// <returns>授课信息</returns>
        IList<Course> GetCoursesOfTeacher(string tid);
        
        /// <summary>
        /// 获取某课程的选课学生信息
        /// </summary>
        /// <param name="cid">课程ID</param>
        /// <returns>选了某个课程的学生信息</returns>
        IList<User> GetStudentsOfCourse(string cid);

        /// <summary>
        /// 根据教师ID返回该教师所授的课程信息,不是课程班级信息
        /// </summary>
        /// <param name="tid">教师信息</param>
        /// <returns>课程信息</returns>
        IList<BaseCourse> GetBaseCourseOfTeacher(string tid);
    }
}